<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:81:"D:\important\netwws-cms\public/../application/admin\view\sysadmin\auth_group.html";i:1507614517;s:76:"D:\important\netwws-cms\public/../application/admin\view\extends\extend.html";i:1507614517;}*/ ?>
<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <!--bootstarp-->
    <link href="__admin__/css/bootstrap.min.css" rel="stylesheet">
    <!-- 图标-->
    <link href="__admin__/css/font-awesome.min.css" rel="stylesheet">
    <!-- animate -->
    <link href="__admin__/css/animate.min.css" rel="stylesheet">
    <!--自定义css-->
    <link href="__admin__/css/style.min.css" rel="stylesheet">
    

</head>
<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>用户组列表</h5>
                        <div class="ibox-tools">
                            <a href="javascript:location.reload(true);" class="btn btn-outline btn-info btn-xs">
                                <i class="fa fa-refresh"></i> 刷新
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-12 m-b-xs">
                                <div class="btn-group">
                                    <a href="<?php echo url('Sysadmin/createGroup'); ?>" class="btn btn-info btn-rounded" type="button">新增用户组</a>
                                </div>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>序</th>
                                    <th>用户组</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php if(!(empty($groups) || (($groups instanceof \think\Collection || $groups instanceof \think\Paginator ) && $groups->isEmpty()))): if(is_array($groups) || $groups instanceof \think\Collection || $groups instanceof \think\Paginator): $i = 0; $__LIST__ = $groups;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo $v['title']; ?></td>
                                            <td><?php echo $v['status_text']; ?></td>
                                            <td>
                                                <a href="<?php echo url('Sysadmin/editGroup',['auth_group_id'=>$v['auth_group_id']]); ?>" class="btn btn-warning btn-sm">编辑</a>
                                                <a href="<?php echo url('Sysadmin/deleteGroup',['auth_group_id'=>$v['auth_group_id']]); ?>" class="btn btn-danger btn-sm">删除</a>
                                                <a href="<?php echo url('Sysadmin/groupAllotRule',['auth_group_id'=>$v['auth_group_id']]); ?>" class="btn btn-success btn-sm">分配权限</a>
                                            </td>
                                        </tr>
                                    <?php endforeach; endif; else: echo "" ;endif; else: ?>
                                    <tr>
                                        <td colspan="7" align="center">暂无数据!</td>
                                    </tr>
                                <?php endif; ?>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

<!-- jquery-->
<script src="__admin__/js/jquery.min.js"></script>
<!-- bootstarp-->
<script src="__admin__/js/bootstrap.min.js"></script>


    <!-- sweetalert js -->
    <script src="__admin__/js/plugins/sweetalert/sweetalert.min.js"></script>


</body>
</html>
